package values;

public class Boolean implements Value {

	boolean value;
	
	/**
	 * Creates a new Boolean with the value 'a'
	 * @param a
	 */
	
	public Boolean (boolean a) {
		this.value = a;
	}
	
	/**
	 * Creates a new Boolean with the same value as the Boolean 'a'
	 * @param a
	 */
	
	public Boolean (Boolean a) {
		this.value = a.eval();
	}
	
	/**
	 * @return the boolean value of this
	 */
	
	public boolean eval() {
		return this.value;
	}
	
	public String toString() {
		return value ? "boolean:true" : "boolean:false";
	}
}
